import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 引入icon文件
import './assets/fonts/iconfont.css'
// 引入reset文件
import './assets/reset.css'
import $loading from './plugins/loading'
//  引入各种vant组件
import {
  Button, Icon, Tabbar, TabbarItem, Swipe, SwipeItem, Grid, GridItem, PullRefresh, List,
  Sidebar, SidebarItem, Search, Empty, NavBar, Popover, Toast, Divider,
  GoodsAction, GoodsActionIcon, GoodsActionButton, Popup, Card, Stepper, Field, Form,
  SubmitBar, Checkbox, SwipeCell, AddressEdit, AddressList, ContactCard, Lazyload
} from 'vant'
Vue.use($loading)
// 使用引入的
Vue.use(Button)
  .use(Tabbar)
  .use(TabbarItem)
  .use(Icon)
  .use(Swipe)
  .use(SwipeItem)
  .use(Grid)
  .use(GridItem)
  .use(PullRefresh)
  .use(List)
  .use(Sidebar)
  .use(SidebarItem)
  .use(Search)
  .use(Empty)
  .use(NavBar)
  .use(Popover)
  .use(Toast)
  .use(Divider)
  .use(GoodsAction)
  .use(GoodsActionIcon)
  .use(GoodsActionButton)
  .use(Popup)
  .use(Card)
  .use(Stepper)
  .use(Field)
  .use(Form)
  .use(SubmitBar)
  .use(Checkbox)
  .use(SwipeCell)
  .use(AddressEdit)
  .use(AddressList)
  .use(ContactCard)
  .use(Lazyload, {
    loading: require('./assets/imgs/10.gif'),
    error: require('./assets/imgs/12.png'),
    preload: '1'
  })
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
